﻿<UserControl x:Class="MyData.WordAddIn.CustomTaskPanes.NotesUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <!--
    xmlns:vm="clr-namespace:MyData.ViewModels"
    <UserControl.Resources>
         ViewModel
        <vm:NameList x:Key="NameListData"/>
    </UserControl.Resources> -->

    <Grid x:Name="LayoutRoot" >
        <Button Content="ToolForm" Height="23" HorizontalAlignment="Left" Name="notesButton" VerticalAlignment="Top" Width="80" Click="notesButton_Click" Margin="0,205,0,0" />
        <!--<ListBox HorizontalAlignment="Stretch" DisplayMemberPath="FirstName"
         ItemsSource="{Binding Source={StaticResource NameListData}}"
            Width="Auto"
         IsSynchronizedWithCurrentItem="True" Margin="0,234,0,0" />-->
        <RichTextBox Height="199" HorizontalAlignment="Stretch" Name="richTextBox" VerticalAlignment="Top" Width="Auto" ContextMenuOpening="richTextBox_ContextMenuOpening">
            <RichTextBox.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Cut" Command="Cut"></MenuItem>
                    <MenuItem Header="Copy" Command="Copy"></MenuItem>
                    <MenuItem Header="Paste" Command="Paste"></MenuItem>
                </ContextMenu>
            </RichTextBox.ContextMenu>
        </RichTextBox>
    </Grid>
</UserControl>
